package jinyilw.swing.visuals.panel;

import java.awt.LayoutManager;

import javax.swing.JPanel;
import javax.swing.plaf.PanelUI;
import javax.swing.plaf.basic.BasicPanelUI;

public class CustomPanel extends JPanel
{
	private static final long serialVersionUID = -3259335784099785514L;

	private static PanelUI panelUI;

	public CustomPanel()
	{
	}

	public CustomPanel(LayoutManager layout)
	{
		super(layout);
	}

	public CustomPanel(boolean isDoubleBuffered)
	{
		super(isDoubleBuffered);
	}

	public CustomPanel(LayoutManager layout, boolean isDoubleBuffered)
	{
		super(layout, isDoubleBuffered);
	}

	public static PanelUI getPanelUI()
	{
		if (panelUI == null)
			panelUI = new BasicPanelUI();
		return panelUI;
	}

	@Override
	public void updateUI()
	{
		setUI(getPanelUI());
	}

}
